import { http } from '@/utils'

/**
 * 获取新闻详情
 * @returns {Promise<Recordable>}
 * @param id
 */
export function getNewsDetail(id: string | number) {
  return http.get<Recordable>('/wtpc/saasappletsnews/detail', { id })
}

/**
 * 查看数量/转发人数/转发次数
 * @param params
 * @return {Request<any>}
 */
export function postNewsView(params: { id: string | number; incType: number }) {
  return http.get('/wtpc/saasappletsnews/incNum', params)
}
